@extends('admin.common.layout')
@section('admin')
<table id="adminTable"></table>
<div id="adminToolBar" style="padding:10px">
<form id="fm-admin" action="###" method="get">

  <label class="l-btn-disabled">&nbsp;&nbsp;名&nbsp;&nbsp;称：</label><input  class="textbox" type="text" name="name" placeholder="请输入..." style="width:150px;padding:5px;"/>
  <label class="l-btn-disabled">&nbsp;&nbsp;账&nbsp;&nbsp;号：</label><input  class="textbox" type="text" name="host" placeholder="请输入..." style="width:150px;padding:5px;"/>
  <label class="l-btn-disabled">&nbsp;&nbsp;手&nbsp;&nbsp;机：</label><input  class="textbox" type="text" name="host" placeholder="请输入..." style="width:150px;padding:5px;"/>
  <!-- <label class="l-btn-disabled">&nbsp;&nbsp;邮&nbsp;&nbsp;箱：</label><input  class="textbox" type="text" name="host" placeholder="请输入..." style="width:150px;padding:5px;"/> -->
  <label class="l-btn-disabled">&nbsp;&nbsp;状&nbsp;&nbsp;态：</label>
  <select class="easyui-combobox" name="status" style="width:150px;height:28px;">
    <option value="0">请选择</option>
    <option value="1">正常</option>
    <option value="2">禁用</option>
</select>
  <input  class="textbox" type="hidden" name="type" value="ajax" />
  <button  type="button" class="easyui-linkbutton" iconCls="icon-search" onClick='adminObj.search();'>查询</button>
  <button  type="button" class="easyui-linkbutton" iconCls="icon-reload" onClick='adminObj.reset();'>重置</button>
  <a class="easyui-linkbutton" iconCls="icon-20130406015709810_easyicon_net_16" onClick='commonObj.reload();'>重载</a>
  <a class="easyui-linkbutton" iconCls="icon-user_add" plain="false"  onClick='adminObj.add(this);'>新增管理员</a>

</form>
</div>
<div id="dlg-admin-add" class="easyui-dialog" style="width:400px" closed="true" buttons="#dlg-admin-add-buttons">
  <form id="fm-admin-add" method="get">
   <div style="margin:0;padding:20px 25px">
      <div style="margin-bottom:10px">
      <input name="name" class="easyui-textbox" required="true" label="真实姓名:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input name="account" class="easyui-textbox" required="true" label="登录账号:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input name="mobile" class="easyui-textbox" required="true" label="手机号码:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input name="password" class="easyui-textbox" required="true" label="登录密码:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input name="remarks" class="easyui-textbox" required="true" multiline=true label="备注信息:" style="width:90%;height:50px;">
      </div>
   </div>
  </form>
</div>
<div id="dlg-admin-add-buttons">
<a class="easyui-linkbutton" iconCls="icon-page_save" onclick="adminObj.save(this);">保存数据</a>
<a class="easyui-linkbutton" iconCls="icon-page_cancel" onclick="adminObj.cancel(this);">放弃操作</a>
</div>

<div id="dlg-admin-edit" class="easyui-dialog" style="width:400px" closed="true" buttons="#dlg-admin-edit-buttons">
  <form id="fm-admin-edit" method="get">
   <div style="margin:0;padding:20px 25px">
      <div style="margin-bottom:10px;display:none;">
      <input type="hidden" id="admin-edit-id" name="id" class="easyui-textbox" required="true" label="管理员ID:" style="width:90%">
      </div>
      <div style="margin-bottom:10px;display:none;">
      <input type="hidden" id="admin-edit-status" name="status" class="easyui-textbox" required="true" label="管理状态:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input id="admin-edit-name" name="name" class="easyui-textbox" required="true" label="真实姓名:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input id="admin-edit-account" name="account" class="easyui-textbox" required="true" label="登录账号:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input id="admin-edit-mobile" name="mobile" class="easyui-textbox" required="true" label="手机号码:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input name="password" class="easyui-textbox" label="登录密码:" style="width:90%">
      </div>
      <div style="margin-bottom:10px">
      <input id="admin-edit-remarks" name="remarks" class="easyui-textbox" required="true" multiline=true label="备注信息:" style="width:90%;height:50px;">
      </div>
   </div>
  </form>
</div>
<div id="dlg-admin-edit-buttons">
<a class="easyui-linkbutton" iconCls="icon-page_save" onclick="adminObj.modify(this);">保存数据</a>
<a class="easyui-linkbutton" iconCls="icon-page_cancel" onclick="adminObj.cancel(this);">放弃操作</a>
</div>
<script>
require(['pages/admin/admin/admin','pages/common/common'],function(admin,common){
common.init({});
admin.adminInit({
get_list_url:"{{ route('admin.admin.admin')}}",
get_add_url:"{{ route('admin.admin.admin.add')}}",
get_edit_url:"{{ route('admin.admin.admin.edit')}}",
});
});
</script>
@stop
